import { createApp } from 'vue'
import './assets/style/variables.less'
import './assets/css/common.less'
import App from './App.vue'
import router from './router/index';
import commom from './common/common'
import {
    // create naive ui
    create,
    // component
    NButton,
    NScrollbar,
    NCollapseTransition,
    NTooltip,
    NMessageProvider,
    NSpin,
    NBadge,
    NAvatar,
    NSwitch,
    NResult,
    NModal,
    NInput
  } from 'naive-ui'
import store from './store/main'
import'./mock'
  const naive = create({
    components: [NButton,NInput, NScrollbar, NCollapseTransition, NTooltip, NMessageProvider, NSpin, NBadge, NAvatar, NSwitch, NResult, NModal]
  })
  const app = createApp(App)
  app.config.globalProperties.$commom = commom
  app.use(naive).use(store).use(router).mount('#app')
